package com.skt.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.skt.common.annotation.Excel;
import com.skt.common.core.domain.BaseEntity;

/**
 * 健康资讯资源对象 health_resources
 * 
 * @author ffbaby
 * @date 2025-04-14
 */
public class HealthResources extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资源ID */
    private Long resourceId;

    /** 资源标题 */
    @Excel(name = "资源标题")
    private String title;

    /** 资源描述 */
    @Excel(name = "资源描述")
    private String description;

    /** 文件存储路径或URL */
    @Excel(name = "文件存储路径或URL")
    private String filePath;

    /** 文件内容类型（MIME类型） */
    @Excel(name = "文件内容类型", readConverterExp = "M=IME类型")
    private String contentType;

    /** 资源分类 */
    @Excel(name = "资源分类")
    private String category;

    /** 相关图片的URL或路径 */
    @Excel(name = "相关图片的URL或路径")
    private String imageUrl;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    public void setResourceId(Long resourceId) 
    {
        this.resourceId = resourceId;
    }

    public Long getResourceId() 
    {
        return resourceId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setUploadTime(Date uploadTime) 
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime() 
    {
        return uploadTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resourceId", getResourceId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("filePath", getFilePath())
            .append("contentType", getContentType())
            .append("category", getCategory())
            .append("imageUrl", getImageUrl())
            .append("uploadTime", getUploadTime())
            .toString();
    }
}
